export default {
  namespaced: true,
  state: {
    isCollapse: false,
    routes: [],
  },
  mutations: {

    iscoll(state) {
      state.isCollapse = !state.isCollapse
    },
    routeslist(state, playod) {
      if (state.routes.every(item => { return item.name !== playod.name })) { state.routes.push({ path: playod.path, name: playod.name }) }
    },
  },
  actions: {
  },
}
